<p class="Paragraph">Expression: Any string or numeric expression to be converted.</p>
<p class="Paragraph">When converting a string expression, the date and time must be entered in the format MM.DD.YYYY HH.MM.SS, as defined by the <span class="T1">DateValue</span> and <span class="T1">TimeValue</span> function conventions. In numeric expressions, values to the left of the decimal represent the date, beginning from December 31, 1899. Values to the right of the decimal represent the time.</p>
<p class="P2">Example:</p>
<p class="PropText">sub ExampleCDate</p>
<p class="PropText">MsgBox cDate(1000.25) REM 09.26.1902 06:00:00</p>
<p class="PropText">MsgBox cDate(1001.26) REM 09.27.1902 06:14:24</p>